package tech.heptagram.staff.cas.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

import tech.heptagram.staff.cas.domain.po.RoleDataAuth;

/**
 * @author wang.yuchuan
 * @createdAt 2019/1/11
 */
public interface CasRoleDataAuthMapper {

    int insert(RoleDataAuth roleDataAuth);

    int deleteByRoleId(@Param("roleId") Integer roleId, @Param("deletedBy") String deletedBy);

    int deleteByDataAuthId(@Param("dataAuthId") Integer dataAuthId, @Param("deletedBy") String deletedBy);

    List<String> selectByCode(@Param("code") String code);
}
